package com.dfqy.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SymType {
    private long id;
    private String symType;//症状类型
    private String poster;//发布人

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postTime;//发布时间
    private byte isValid;//是否启用

    public SymType(String symType, String poster, Date postTime, byte isValid) {
        this.symType = symType;
        this.poster = poster;
        this.postTime = postTime;
        this.isValid = isValid;
    }
}
